﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace cimdict
{
    public partial class SearchFilterForm : Form
    {
        public SearchFilterForm()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void searchButton_Click(object sender, EventArgs e)
        {
            string searchStr = searchBox.Text;
            if (searchStr != null && searchStr != "")
            {
                string[] keys = searchStr.Split(' ');
                for (int i = 0; i < keys.Length; i++)
                {
                    keys[i] = keys[i].Trim().ToLower();
                }
                CIMInterface.filterView(keys);
            }
            this.Close();
        }
    }
}
